package.path = package.path .. ";src"
local MainScene = class("MainScene", cc.load("mvc").ViewBase)
require "app.init"

local function welcome()
    local w = require "app.views.scene.WelcomeScene"
    cc.Director:getInstance():replaceScene(w.create())
end

function MainScene:onCreate()
    -- add background image
    display.newSprite("splash.png")
        :move(display.center)
        :addTo(self)
    
    performWithDelay(self, welcome, 3.0) 
end

return MainScene
